package com.wan37.logic.guild.domain.vo;

import com.wan37.logic.guild.domain.entity.GuildUserDO;
import com.wan37.protobuf.constant.GuildJobLabel;
import com.wan37.protobuf.message.client2server.game.GameGuild;

/**
 * @author : luoyong
 * @date : 2020-08-03 17:05
 **/
public class GuildUserVO {
    private String guildId;
    private String userId;
    private int job;

    public GuildUserVO(){}

    public GuildUserVO(String guildId, String userId, int job){
        this.guildId = guildId;
        this.userId = userId;
        this.job = job;
    }

    public GuildUserVO(GameGuild.GuildUser guildUser){
        this.guildId = guildUser.getGuildId();
        this.userId = guildUser.getUserId();
        this.job = guildUser.getJob();
    }

    public GuildUserVO(GuildUserDO guildUserDO) {
        this.guildId = guildUserDO.getGuildId();
        this.userId = guildUserDO.getUserId();
        this.job = guildUserDO.getJob();
    }

    public String getGuildId() {
        return guildId;
    }

    public void setGuildId(String guildId) {
        this.guildId = guildId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }


    public int getJob() {
        return job;
    }

    public void setJob(int job) {
        this.job = job;
    }

    @Override
    public String toString() {
        return "GuildUserVO{" +
                "guildId='" + guildId + '\'' +
                ", userId='" + userId + '\'' +
                ", job=" + job +
                '}';
    }
}
